package com.xinhe.web.reposity;


import com.xinhe.web.entity.WeixinTradeCp;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

public interface WeixinTradeCpRepository extends JpaRepository<WeixinTradeCp, Long> {
    @Query(value = "select * from tb_weixin_trade_cp where removed = 0 and out_trade_no =?1", nativeQuery = true)
    WeixinTradeCp findByOutTradeNo(String outTradeNo);
}
